<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // const str = 'abcde';
      const arr = ["a", "b", "c", "d", "e"];
      arr[100] = "x";
      console.log(arr);
      // arr.length = 2;
      arr.length = 0;
      console.log(arr);
    </script>
  </body>
</html>
